with Condition
Adds a conditional check to this ValidatedCondition. Apply conditional checks on top of the stored value by calling get. Get the base value with getUnconditional.
Return
this condition
Author
fzzyhmstrs
Since
0.5.4
Parameters
Condition a condition to check before passing the stored value
Adds a conditional check to this ValidatedCondition. Apply conditional checks on top of the stored value by calling get. Get the base value with getUnconditional.
Note: a ValidatedField is a supplier. If you want a custom failMessage, this is a valid overload of withCondition(ValidatedField<Boolean>)
Return
this condition
Author
fzzyhmstrs
Since
0.5.4
Parameters
Supplier
Text a message to provide to a tooltip if a condition isn't met
Adds a conditional check to this ValidatedCondition using the provided validated field as a supplier. Apply conditional checks on top of the stored value by calling get. Get the base value with getUnconditional.
Return
this condition
Author
fzzyhmstrs
Since
0.5.4
Parameters
ValidatedField
Throws
if this field is passed into itself
Adds a conditional check to this ValidatedCondition using the provided scope against a boolean provider. Apply conditional checks on top of the stored value by calling get. Get the base value with getUnconditional. The provided scope must point to a valid boolean config scope otherwise the condition will never pass.
Return
this condition
Author
fzzyhmstrs
Since
0.5.4
Parameters
String - a config scope
pointing to a boolean or validated boolean.
Text a message to provide to a tooltip if a condition isn't met